/*
 * @Author: your name
 * @Date: 2020-08-23 16:32:23
 * @LastEditTime: 2020-08-28 17:36:06
 * @LastEditTime: 2020-08-28 17:28:38
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \exam\react-exam\src\utils\interface.ts
 */
/* 路由菜单类型 */
export interface IMenuItem {
    name: string,
    meta?: {
        icon: any,
        title: string,
        show: boolean
    },
    children: Array<{
        path: string,
        name: string,
        component?: any,
        meta: {
            title: string,
            show: boolean,
            component: any
        }
    }>
}

/* 路由类型 */
export interface IRouterItem {
    path: string,
    name: string,
    redirect?: string,
    component?: any,
    children: IRouterItem[],
    meta: {
        title: string,
        show: boolean,
        component: any
    }
}

/* 试题接口类型 */

/* 添加试题接口类型 */
export interface AddQuestionItem {
    questions_type_id: string,
    questions_stem: string,
    subject_id: string,
    exam_id: string,
    user_id: string,
    questions_answer: string,
    title: string
}

/* 条件获取试题类型 */
export interface ConditionItem {
    questions_id?: string,
    questions_type_id?: string,
    subject_id?: string,
    exam_id?: string
}

/* 更新试题类型 */
export interface UpdateItem {
    questions_id: string,
    title?: string,
    questions_stem?: string,
    questions_answer?: string,
    subject_id?: string,
    questions_type_id?: string,
    exam_id?: string
}

/* 所有试题的类型 */
export interface AllConditionItem {
    questions_id?: string,
    json_path?: string,
    subject_text?: string,
    exam_name?: string,
    user_name?: string,
    questions_type_text?: string,
    questions_stem?: string,
    questions_answer?: string
}

/* 获取试卷列表 */
export interface AllExamItem {
    exam_exam_id?: string,
    subject_id?: string,
    title?: string,
    number?: number,
    start_time?: number,
    end_time?: number,
    page?: number,
    pageSize?: number
}

/* 考试管理类型 */

/* 创建试卷类型 */
export interface AddExamItme {
    subject_id: string,
    exam_id: string,
    title: string,
    number?: number,
    start_time: number,
    end_time: number
}

/* 添加班级 */
export interface AddClassItem{
    grade_name:string,
    room_id?:string,
    subject_id:string
}

// 待批班级
export interface ExamStudent{
    exam_exam_id?:string,
    student_id?:string,
    grade_id?:string,
    status?:number,
    start_time?:number,
    end_time?:number,
    page?:number,
    pageSize?:number
}

/* 标签类型 */
export interface ITag{
    name: string,
    path: string
}